Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: switch blob ID calculation from data offset to configurable offset #1593

Merged
merged 33 commits into from
Feb 14, 2025

Conversation

Salka1988
Copy link
Member

@Salka1988 Salka1988 commented Jan 31, 2025

Release notes

In this release, we:

- Previously deployed blobs are no longer accessible due to changes in blob ID calculation. Redeployment is required.

Summary

Updates blob ID calculation to use the configurable offset instead of the data offset, aligning with the updated design for scripts and predicates.

has_configurable_section_offset function checks bytes 4 and 7 to distinguish binary versions. If byte 4 is 0x74 (JMPF), it considers byte 7: 0x02 means legacy, 0x04 means new, and any other value results in an error.

Checklist

  • All changes are covered by tests (or not applicable)
  • All changes are documented (or not applicable)
  • I reviewed the entire PR myself (preferably, on GH UI)
  • I described all Breaking Changes (or there's none)

@Salka1988 Salka1988 added the enhancement New feature or request label Jan 31, 2025
@Salka1988 Salka1988 self-assigned this Jan 31, 2025
# Conflicts:
#	packages/fuels-programs/src/executable.rs
@Salka1988 Salka1988 linked an issue Jan 31, 2025 that may be closed by this pull request
@hal3e hal3e changed the title feat: Switch blob ID calculation from data offset to configurable offset feat: switch blob ID calculation from data offset to configurable offset Feb 3, 2025
hal3e
hal3e previously approved these changes Feb 3, 2025
Copy link
Contributor

@hal3e hal3e left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Salka1988 Salka1988 requested review from xunilrj and hal3e February 4, 2025 11:04
digorithm
digorithm previously approved these changes Feb 5, 2025
Copy link
Member

@digorithm digorithm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Great job, @Salka1988, and great suggestions, @segfault-magnet!

Copy link
Contributor

@hal3e hal3e left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work. Left some comments

packages/fuels-programs/src/debug.rs Outdated Show resolved Hide resolved
e2e/tests/binary_format.rs Outdated Show resolved Hide resolved
e2e/tests/debug_utils.rs Outdated Show resolved Hide resolved
packages/fuels-programs/src/debug.rs Show resolved Hide resolved
packages/fuels-programs/src/debug.rs Outdated Show resolved Hide resolved
packages/fuels-programs/src/executable.rs Outdated Show resolved Hide resolved
packages/fuels-programs/src/executable.rs Outdated Show resolved Hide resolved
packages/fuels-programs/src/executable.rs Outdated Show resolved Hide resolved
packages/fuels-programs/src/executable.rs Outdated Show resolved Hide resolved
packages/fuels-programs/src/executable.rs Show resolved Hide resolved
Copy link
Contributor

@hal3e hal3e left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

@Salka1988 Salka1988 merged commit 7509a9a into master Feb 14, 2025
45 checks passed
@Salka1988 Salka1988 deleted the feat/support_for_verified_abi branch February 14, 2025 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for verified ABIs
4 participants